package demo2;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import pojo.MoAttack;

public class SpringTest {

	@Test
	public void test() {
		ApplicationContext ctxApplicationContext = new ClassPathXmlApplicationContext("applicatonContext.xml");
		//ApplicationContext ac = new FileSystemXmlApplicationContext("D:\\eclipse-workspace\\demo2\\src\\main\\java\\applicatonContext.xml");
		MoAttack moAttack = (MoAttack)ctxApplicationContext.getBean("moAttack");
		moAttack.cityGateAsk();
	}

}
